package com.tfjybj.itoo.teach.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dmsdbj.itoo.tool.base.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
/**
 * Repair实体
 * 保修表
 *
 * @author 马莹 
 * @version ${version}
 * @since ${version} 2019-05-22 21:02:48
 */
@ApiModel(value = "RepairEntity:保修表")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "tt_repair")
public class RepairEntity extends BaseEntity implements Serializable {

	/**
	 * 报修状态（0-等待受理，1-已受理，2-已解决，3-超期）
	 */
	@ApiModelProperty(value = "报修状态（0-等待受理，1-已受理，2-已解决，3-超期）",required = true)
	@Column(name = "repair_status")
	private Integer repairStatus;

	/**
	 * 学号/教工号
	 */
	@ApiModelProperty(value = "学号/教工号",required = true)
	@Column(name = "request_id")
	private String requestId;

	/**
	 * 工人工号
	 */
    @ApiModelProperty(value = "工人工号")
	@Column(name = "accept_id")
	private String acceptId;

	/**
	 * 是否为教学楼(0-教学楼，1-宿舍楼，2-其他)
	 */
    @ApiModelProperty(value = "是否为教学楼(0-教学楼，1-宿舍楼，2-其他)")
	@Column(name = "type")
	private Integer type;

	/**
	 * 建筑ID
	 */
    @ApiModelProperty(value = "建筑ID")
	@Column(name = "building_id")
	private String buildingId;

	/**
	 * 房间ID
	 */
    @ApiModelProperty(value = "房间ID")
	@Column(name = "room_id")
	private String roomId;

	/**
	 * 报修种类（1-电灯报修，2-电扇报修，3-水管报修，4-暖气报修 5-桌椅报修，6-门窗报修，7-其他报修）
	 */
    @ApiModelProperty(value = "报修种类（1-电灯报修，2-电扇报修，3-水管报修，4-暖气报修 5-桌椅报修，6-门窗报修，7-其他报修）")
	@Column(name = "repair_category")
	private Integer repairCategory;

	/**
	 * 报修时间
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "报修时间")
	@Column(name = "repair_date")
	private Date repairDate;

	/**
	 * 预计解决时间
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "预计解决时间")
	@Column(name = "end_date")
	private Date endDate;

	/**
	 * 实际解决时间
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "实际解决时间")
	@Column(name = "real_date")
	private Date realDate;

	/**
	 * 创建时间
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "创建时间")
	@Column(name = "create_date")
	private Date createDate;

	/**
	 * 报修时间
	 */
	@JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    @ApiModelProperty(value = "报修时间")
	@Column(name = "update_date")
	private Date updateDate;


}
